package com.zmy.xcx.dto;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.zmy.xcx.config.RawJsonDeserializer;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.lang.NonNull;
import org.springframework.lang.Nullable;

/**
 * 中国糖尿病风险评分DTO
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class HyperglycemiaRiskScoreDTO {

    @NonNull
    private Integer age;

    @Nullable
    private Double height;

    @Nullable
    private Double weight;

    @Nullable
    private Double waistline;

    @Nullable
    private Double systolicBloodPressure;

    @Nullable
    private String gender;

    /**
     * 评分详细信息, 问题、选项、得分
     */
    @JsonDeserialize(using = RawJsonDeserializer.class)
    private String riskScoreInfo;

    private Integer totalScore;

    /**
     * 高危因素详细信息
     */
    @JsonDeserialize(using = RawJsonDeserializer.class)
    private String highRiskIndications;
}
